<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
	<meta name="author" content="">
	<title></title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
	<% include("../inc/list_css.html"){}%>
</head>
<body>
<div class="ibox ">
	<div class="ibox-title">
		<div class="pull-left mbx navbar_title">
			<span>内容管理 </span>
			<span class="line">/</span>
			内容生成
		</div>
	</div>

	<div class="ibox-content">
		<div class="wrapper wrapper-content">
			<div class="row">
				<div class="col-md-12"></div>
					<div id="eventsToolbar" class="form-inline hive_input" style="margin-left: 15px">
						<div class="btn-group margin-bottom-5">
							<button type="button" class="hive-btn-md-large hive-btn-primary index">生成网站首页</button>
							<button type="button" class="hive-btn-md-large hive-btn-primary product">生成所有产品页面</button>
							<!--<button type="button" class="hive-btn-md-large hive-btn-primary article">生成所有文章页面</button>-->
							<button type="button" class="hive-btn-md-large hive-btn-primary businessIndex">一键生成商家店铺</button>
						</div>
					</div>

			</div>
		</div>
	</div>
</div>


<% include("../inc/list_js.html"){}%>
<script>
    (function() {
        $('.product').on('click',function (e) {
            var ii = parent.layer.load(0,{shade: [0.1,'#000']});
            $.post('product',null,function (e) {
                if(e.state == "ok"){
                    parent.layer.msg("生成成功");
                }else{
                    parent.layer.msg(e.info);
				}
                parent.layer.close(ii);
            })
        });
        $('.article').on('click',function (e) {
            var ii = parent.layer.load(0,{shade: [0.1,'#000']});
            $.post('article',null,function (e) {
                if(e.state == "ok"){

                    parent.layer.msg("生成成功");
                }else{
                    parent.layer.msg(e.info);
				}
                parent.layer.close(ii);
            })
        });
        $('.index').on('click',function (e) {
            var ii = parent.layer.load(0,{shade: [0.1,'#000']});
            $.post('index',null,function (e) {
                if(e.state == "ok"){
                    parent.layer.msg("生成成功");

                }else{
                    parent.layer.msg(e.info);
				}
                parent.layer.close(ii);
            })
        })

        $('.businessIndex').on('click',function (e) {
            var ii = parent.layer.load(0,{shade: [0.1,'#000']});
            $.post('businessIndex',null,function (e) {
                if(e.state == "ok"){
                    parent.layer.msg("生成成功");

                }else{
                    parent.layer.msg(e.info);
                }
                parent.layer.close(ii);
            })
        })

    })();
</script>
</body>
</html>